﻿

namespace SvGame.Objects;


public partial class Props
{
    public Dictionary<EProp, int> Datas = new();

    public void Clear()
    {
        Datas.Clear();
    }
    public int Get(EProp prop)
    {
        Datas.TryGetValue(prop, out var old);
        return old;
    }
    public void Set(EProp prop, int value)
    {
        Datas[prop] = value;
    }
    public void Add(EProp prop, int value)
    {
        Datas.TryGetValue(prop, out var old);
        Datas[prop] = old + value;
    }

}
